// 用户类型
const USER_TYPE = Object.freeze({
    NORMAL: 0,   // 普通用户
    ADVISOR: 1,  // 顾问
});

// 服务类型
const SERVICE_TYPE = Object.freeze({
    TEXT_READING_24H: 1,   // 24h Delivered Text Reading
    AUDIO_READING_24H: 2,  // 24h Delivered Audio Reading
    VIDEO_READING_24H: 3,  // 24h Delivered Video Reading
    LIVE_TEXT_CHAT: 4,     // Live Text Chat
});

// 顾问服务状态
const SERVICE_STATUS = Object.freeze({
    OFFLINE: 0,  // 待接单
    ONLINE: 1,   // 正在接单
});

// 顾问工作状态
const WORK_STATUS = Object.freeze({
    CLOSED: 0,   // 关闭
    OPEN: 1,     // 打开
});

const CONTRYCODE = Object.freeze({
    // countryCode: 可选，例如 'US', 'CN', 'GB'
    USA: 'US',
    CHINA: 'CN',
    GBR: 'GB'
})

const GENDER = Object.freeze({
    MAN: 0,
    WOMAN: 1
})

const FileTypeEnum = Object.freeze({
    File: {
      DOCX: 'file/docx',
      PPTX: 'file/pptx',
      XlSX: 'file/xlsx'
    },
    // 图片类型
    IMAGE: {
        JPG: 'image/jpg',
        JPEG: 'image/jpeg',
        PNG: 'image/png',
        GIF: 'image/gif',
        WEBP: 'image/webp',
        BMP: 'image/bmp',
        SVG: 'image/svg+xml',
        HEIC: 'image/heic',
        HEIF: 'image/heif',
    },

    // 视频类型
    VIDEO: {
        MP4: 'video/mp4',
        WEBM: 'video/webm',
        MOV: 'video/quicktime',
        AVI: 'video/x-msvideo',
        MKV: 'video/x-matroska',
        FLV: 'video/x-flv',
        M4V: 'video/x-m4v',
        '3GP': 'video/3gpp',
    },

    // 音频类型
    AUDIO: {
        MP3: 'audio/mpeg',
        WAV: 'audio/wav',
        AAC: 'audio/aac',
        OGG: 'audio/ogg',
        M4A: 'audio/mp4',
        FLAC: 'audio/flac',
        AMR: 'audio/amr',
        OPUS: 'audio/opus',
    },
});

const ORDER_STATUS = { PENDING: 'pending', COMPLETED: 'completed', CANCELLED: 'cancelled' };
const LEDGER_BIZ = {
    ORDER_PAY_SERVICE: 'ORDER_PAY_SERVICE',
    ORDER_PAY_RUSH: 'ORDER_PAY_RUSH',           // 预留，如需拆分服务费/加急费两笔
    ORDER_RUSH_REFUND: 'ORDER_RUSH_REFUND',
    ORDER_ADVISOR_INCOME: 'ORDER_ADVISOR_INCOME',
    ORDER_REFUND_ALL: 'ORDER_REFUND_ALL',
    TIP_PAY: 'TIP_PAY',
    TIP_INCOME: 'TIP_INCOME'
};


module.exports = {
    USER_TYPE,
    SERVICE_TYPE,
    SERVICE_STATUS,
    WORK_STATUS,
    CONTRYCODE,
    GENDER,
    FileTypeEnum,
    ORDER_STATUS,
    LEDGER_BIZ
};



